import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import {
  NavBar,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  Divider,
  ConfigProvider,
  Empty,
  Icon,
  Search,
  Swipe,
  SwipeItem,
  Toast,
  List,
  PullRefresh,
  Popup,
  CellGroup,
  Cell,
  DropdownMenu,
  DropdownItem,
  Field,
  Checkbox,
  CheckboxGroup,
  NoticeBar,
  Button,
  Popover,
} from "vant";

import "./assets/css/reset.less";
// 引入字体文件
import "./assets/font/iconfont.css";
import "amfe-flexible";

createApp(App)
  .use(store)
  .use(router)
  .use(NavBar)
  .use(Divider)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Tab)
  .use(Tabs)
  .use(ConfigProvider)
  .use(Empty)
  .use(Icon)
  .use(Search)
  .use(Swipe)
  .use(SwipeItem)
  .use(Toast)
  .use(List)
  .use(PullRefresh)
  .use(Cell)
  .use(Popup)
  .use(CellGroup)
  .use(DropdownMenu)
  .use(DropdownItem)
  .use(Field)
  .use(CheckboxGroup)
  .use(Checkbox)
  .use(NoticeBar)
  .use(Button)
  .use(Popover)
  .mount("#app");
